<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <p>helloWord</p>
    </div>
</body>
<style>
    div{
        width: 200px;
        height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: red;
        transform: rotate(45deg);
        margin: 200px auto;
        z-index: -1;
        animation-name: sizeChange;
        animation-duration: 4s;
    }
    div::before{
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background-color: red;
        animation-name: sizeChange2;
        animation-duration: 4s;
        transform:  translateY(-100px);
    }
    div::after{
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background-color: red;
        animation-name: sizeChange3;
        animation-duration: 4s;
        transform:  translateX(-100px);
    }
    div>p{
        position: absolute;
        z-index: 99;
        font-size: 25px;
        color: aliceblue;
        transform: rotate(-45deg) translateY(-50px);
        opacity: 0;
        animation-duration: 3s;
        animation-name: hd;
        animation-delay: 4s;
        animation-fill-mode: forwards;
    }

    @keyframes sizeChange {
        0%{
            width: 200px;
            height: 200px;
        }
        25%{
            width: 100px;
            height: 100px;
        }
        50%{
            width: 200px;
            height: 200px;
        }
        75%{
            width: 100px;
            height: 100px;
        }
        100%{
            width: 200px;
            height: 200px;
        }
    }
    @keyframes sizeChange2 {
        0%{
            width: 200px;
            height: 200px;
            transform: translateX(-100px);
        }
        25%{
            width: 100px;
            height: 100px;
            transform: translateX(-50px);
        }
        50%{
            width: 200px;
            height: 200px;
            transform: translateX(-100px);
        }
        75%{
            width: 100px;
            height: 100px;
            transform: translateX(-50px);
        }
        100%{
            width: 200px;
            height: 200px;
            transform: translateX(-100px);
        }
    }

    @keyframes sizeChange3 {
        0%{
            width: 200px;
            height: 200px;
            transform: translateY(-100px);
        }
        25%{
            width: 100px;
            height: 100px;
            transform: translateY(-50px);
        }
        50%{
            width: 200px;
            height: 200px;
            transform: translateY(-100px);
        }
        75%{
            width: 100px;
            height: 100px;
            transform: translateY(-50px);
        }
        100%{
            width: 200px;
            height: 200px;
            transform: translateY(-100px);
        }
    }


    @keyframes hd {
        100%{
            opacity: 0.8;
        }
    }
    body{
        overflow: hidden;
    }
</style>
</html>